﻿using FluentMigrator;

namespace Rubikev.Rockface.Database.ForeignKeys
{
   /// <summary>
   /// Creates a foreign key from the Point table's route ID to the Route table
   /// </summary>
   [Migration(201106052125)]
   public class CreatePointRouteToRouteForeignKey : CreateForeignKeyMigration
   {
      /// <summary>
      /// The name of the point table
      /// </summary>
      public override string FromTableName
      {
         get { return "Point"; }
      }

      /// <summary>
      /// The name of the route table
      /// </summary>
      public override string ToTableName
      {
         get { return "Route"; }
      }
   }
}
